
// Copyright (c) 2002 HTHK
package admin.menu;

import javax.servlet.*;
import javax.servlet.http.*;

import java.io.*;
import java.sql.*;

import com.ffpc.servlet.*;
import com.ffpc.sql.*;
import com.ffpc.struts.StrutsMessage;

/**
 * A Class class.
 * <P>
 * @author HTHK
 */
public class MenuServlet
  extends DBServlet {

  @Override
protected String perform(  HttpServletRequest request,
                             HttpServletResponse response,
                             StrutsMessage message)
    throws  ServletException,
            IOException,
            SQLException,
            DataException,
            Exception
  {
      MenuFactory menu = new MenuFactory();
      menu.setUser(this.getUser());
      menu.load(this.getConnection());
      this.getSession().setAttribute("menu",menu.getTreeMenu());
      return "index2.html";
  }
}



 